﻿using AutoMapper;
using CodeMan.Application.Contracts.ClassGens;
using CodeMan.Domain.ClassGens;
using System.Collections.Generic;

namespace CodeMan
{
    public class CodeManApplicationAutoMapperProfile : Profile
    {
        public CodeManApplicationAutoMapperProfile()
        {
            /* You can configure your AutoMapper mapping configuration here.
             * Alternatively, you can split your mapping configurations
             * into multiple profile classes for a better organization. */

            CreateMap<ClassGen, ClassGenDTO>();
            CreateMap<ClassGenDTOCreateUpdate, ClassGen>();
            CreateMap<ClassGenDTOCreateUpdate, ClassGenDTOCreateUpdate>();
            CreateMap<ClassGen, ClassGenDTOCreateUpdate>();

            CreateMap<ClassAttribute, ClassAttributeDTO>();
            CreateMap<ClassAttributeDTO, ClassAttribute>();
            CreateMap<ClassAttributeDTO, ClassAttributeDTO>();



        }
    }
}
